//
//  UIButton+Extension.swift
//  Weibo
//
//  Created by HH on 16/12/5.
//  Copyright © 2016年 Weibo. All rights reserved.
//

import UIKit

extension UIButton{
    
    convenience init(title:String?,image:UIImage? = nil,backgroundImage:UIImage? = nil,font:CGFloat,textColor:UIColor){
        
        self.init()
        
        self.setTitle(title, for: .normal)
        self.setImage(image, for: .normal)
        self.setImage(image, for: .highlighted)
        self.setTitleColor(textColor, for: .normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: font)
        
        
    }
    
}
